<?php 
    include_custom("/views/admin/header.php");
?>

<div id="main_container">

	<div class="header">
      <?php 
    include_custom("/views/admin/menu_header.php");
    ?>      
    </div>
    
    <div class="main_content">
    
            <?php 
    include_custom("/views/admin/menu.php");
?>        
                    
                    
                    
                    
    <div class="center_content">  

    
    <div class="right_content">            
        
    <h2>Danh sách nhóm quyền</h2> 
                    
                    
<table id="rounded-corner" summary="">
    <thead>
    	<tr>
        	<th scope="col" class="rounded-company"></th>
            <th scope="col" class="rounded">Tên nhóm</th>
            <th scope="col" class="rounded">Ngày tạo</th>
            <th scope="col" class="rounded">Status</th>
            <th scope="col" class="rounded">Edit</th>
            <th scope="col" class="rounded-q4">Delete</th>
        </tr>
    </thead>
        <tfoot>
    	<tr>
        	<td colspan="5" class="rounded-foot-left"><em></em></td>
        	<td class="rounded-foot-right">&nbsp;</td>

        </tr>
    </tfoot>
    <tbody> 
        <?php if(count($roles) != 0): ?>
        <?php foreach($roles as $role):  ?>
    	<tr>
        	<td><input type="checkbox" name="" /></td>
            <td><a href="index.php?rt=admin/details_role&id=<?php echo $role->id; ?>"><?php echo $role->name; ?></a></td>
            <td><?php echo $role->updated; ?></td>
            <td><?php echo $role->status; ?></td>
            <td><a href="index.php?rt=admin/edit_role&id=<?php echo $role->id; ?>"><img src="skin_admin/images/user_edit.png" alt="" title="" border="0" /></a></td>
            <td><a href="index.php?rt=admin/delete_role&id=<?php echo $role->id; ?>" class="btn_delete_icon"><img src="skin_admin/images/trash.png" alt="" title="" border="0" /></a></td>
        </tr>
        <?php endforeach; ?>
        <?php endif; ?>
        
    </tbody>
</table>

	 <a href="index.php?rt=admin/create_role" class="bt_green"><span class="bt_green_lft"></span><strong>Thêm nhóm</strong><span class="bt_green_r"></span></a>
     <a href="index.php?rt=admin/delete_roles" class="bt_red"><span class="bt_red_lft"></span><strong>Xóa nhiều nhóm</strong><span class="bt_red_r"></span></a> 
     
     

              
     <div class="warning_box" style="display: none;">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.
     </div>
     <div class="valid_box" style="display: none;">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.
     </div>
     <div class="error_box"style="display: none;">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut.
     </div>  
           
     </div><!-- end of right content-->
            
                    
  </div>   <!--end of center content -->               
                    
<?php 
    include_custom("/views/admin/footer.php");
?>